# include<cstring>
# include<stdio.h>
# include<iostream>

using namespace std;
char  str[1000];
char  re[1000];


bool 
int main()
{
	while(gets(str))
	{

		int len = strlen(str);
		bool w = false;
		for(int i = 0 ; i < len ; i ++){

		}
	}

	return 0;
}